package org.blogwu.learn.algorithm.队列;

public class QueueTest {

    public static void main(String[] args) {
        Queue<String> q = new Queue<>();
        q.enQueue("1");
        q.enQueue("2");
        q.enQueue("3");
        q.enQueue("4");
        q.enQueue("5");

        System.out.println("queue size:" + q.size());

        for (int i = 0; i < 6; i++) {

            System.out.println(" dequeue item:" + q.deQueue());
        }
    }
}
